/**
 * Private configuration file for the SSD1306 library.
 * This example is configured for STM32F0, I2C and including all fonts.
 */

#ifndef __SSD1306_CONF_H__
#define __SSD1306_CONF_H__


#ifdef __cplusplus
extern "C" {
#endif

#include <stdint.h>

// Choose a bus
#define SSD1306_USE_I2C
//#define SSD1306_USE_SPI


#ifdef  SSD1306_USE_I2C
#include "drv_i2c.h"
#define SSD1306_I2C_NUM         0

#define SSD1306_I2C_ADDR        (0x3C)

#endif

#ifdef  SSD1306_USE_SPI
#include "drv_spi.h"
#define SSD1306_SPI_NUM         0

#define SSD1306_RST_Set()           
#define SSD1306_RST_Reset()         

#define SSD1306_DC_Set()            
#define SSD1306_DC_Reset()          

#define SSD1306_SPI_CS_Set()        
#define SSD1306_SPI_CS_Reset()      


#endif

#define ssd1306_mdelay(x)      delay_ms(x)


//oled width and height ,default 128*64
//#define SSD1306_WIDTH
//#define SSD1306_HEIGHT

// Mirror the screen if needed
// #define SSD1306_MIRROR_VERT
// #define SSD1306_MIRROR_HORIZ

// Set inverse color if needed
// # define SSD1306_INVERSE_COLOR

// Include only needed fonts
#define SSD1306_INCLUDE_FONT_6x8
#define SSD1306_INCLUDE_FONT_7x10
#define SSD1306_INCLUDE_FONT_11x18
#define SSD1306_INCLUDE_FONT_16x26

#ifdef __cplusplus
}
#endif

#endif /* __SSD1306_CONF_H__ */